home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402e
/
expas.arj
/
TEMP
/
15-07.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
629b
|
37 lines
program main;
uses fgmain, fgmisc;
const
ESC = 27;
var
color : integer;
old_mode : integer;
key, aux : byte;
begin
fg_initpm;
old_mode := fg_getmode;
fg_setmode(fg_automode);
color := 0;
fg_musicb('O4 L16 CC#DD#EFF#GG#AA#B O+ CC#DD#EFF#GG#AA#B$',-1);
while (fg_playing = 1) do
begin
color := (color + 1) and 15;
fg_setcolor(color);
fg_rect(0,fg_getmaxx,0,fg_getmaxy);
fg_waitfor(4);
fg_intkey(key,aux);
if (key = ESC) then
fg_hush
else if (key+aux <> 0) then
fg_hushnext;
end;
fg_setmode(old_mode);
fg_reset;
end.